x86/S3: Restore broken vcpu affinity on resume
authorBen Guthro <benjamin.guthro@citrix.com>
Tue, 2 Apr 2013 07:52:32 +0000 (09:52 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 2 Apr 2013 07:52:32 +0000 (09:52 +0200)
commit41e71c2607e036f1ac00df898b8f4acb2d4df7ee
treebb768df8cdebd22eabbfa39e8f8d5c1ff4fbf00e
parentaf699220ad6d111ba76fc3040342184e423cc9a1
x86/S3: Restore broken vcpu affinity on resume

When in SYS_STATE_suspend, and going through the cpu_disable_scheduler
path, save a copy of the current cpu affinity, and mark a flag to
restore it later.

Later, in the resume process, when enabling nonboot cpus restore these
affinities.

Signed-off-by: Ben Guthro <benjamin.guthro@citrix.com>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/acpi/power.c
xen/common/domain.c
xen/common/schedule.c
xen/include/xen/sched.h